package cz.acies.face;

import java.io.Serializable;

public class BasePage implements Serializable
{
	private static final long serialVersionUID = -1752601691469506354L;

	public BasePage() {}
	
	public String getJsInit(String jqxPath) {
		String[] jsFiles = {
			"jqxcore.js",
			
			"jqxbuttons.js",
			"jqxdata.js", 			// Data Source plug-in  
			"jqxdockpanel.js", 		// DockPanel widget
			"jqxexpander.js", 		// Expander widget
			"jqxcheckbox.js", 		// CheckBox widget   
			"jqxlistbox.js", 		// ListBox widget
			"jqxmenu.js", 			// Menu widget
			"jqxnavigationbar.js", 	// NavigationBar widget
			"jqxpanel.js", 			// Panel widget
			"jqxscrollbar.js", 		// ScrollBar widget
			"jqxsplitter.js", 		// Splitter widget
			"jqxtabs.js", 			// Tabs widget
			"jqxtree.js", 			// Tree widget

			//"jqxgrid.js", // Grid widget
			//"jqxgrid.sort.js", // Grid Sort plug-in
			//"jqxgrid.filter.js", // Grid Filter plug-in
			//"jqxgrid.grouping.js", // Grid Grouping plug-in
			//"jqxgrid.selection.js", // Grid Selection plug-in
			//"jqxgrid.columnsresize.js", // Grid Columns Resize plug-in
			//"jqxgrid.columnsreorder.js", // Grid Columns Reorder plug-in
			//"jqxgrid.pager.js", // Grid paging plug-in
			//"jqxgrid.edit.js", // Grid edit plug-in
			//"jqxgrid.aggregates.js", // Grid aggregates plug-in
			//"jqxgrid.export.js", // Grid export plug-in
			//"jqxgrid.storage.js", // Grid Save/Load state plug-in
			//"jqxchart.js", // Chart widget
			//"jqxgauge.js", // Gauge widget
			//"jqxbutton.js", // Button, RepeatButton, SubmitButton & ToggleButton widgets
			//"jqxbuttongroup.js", // Button Group widget
			//"jqxswitchbutton.js", // Switch Button widget
			//"jqxcalendar.js", // impements Calendar widget
			//"jqxdatetimeinput.js", // impements DateTimeInput widget
			//"jqxdropdownlist.js", // DropDownList widget
			//"jqxcombobox.js", // ComboBox widget
			//"jqxtreemap.js", // TreeMap widget
			//"jqxradiobutton.js", // RadioButton widget   
			//"jqxmaskedinput.js", // Masked TextBox widget
			//"jqxnumberinput.js", // NumberInput TextBox widget
			//"jqxpopup.js", // impements PopUp widget
			//"jqxprogressbar.js", // ProgressBar widget
			//"jqxtooltip.js", // ToolTip widget
			//"jqxrating.js", // Rating widget
			//"jqxwindow.js", // Window widget
			//"jqxslider.js", // Slider widget
			//"jqxdocking.js", // Docking widget
			//"jqxdragdrop.js", // DragDrop plug-in
			//"jqxvalidator.js", // Validator plug-in
			//"jqxcolorpicker.js", // Color Picker plug-in
			//"jqxdropdownbutton.js", // DropDownButton plug-in
			//"jqxlistmenu.js", // ListMenu widget
			//"jqxscrollview.js", // ScrollView widget
			//"jqxinput.js", // Input widget
			//"jqxpasswordinput.js", // Password widget
			//"jqxdata.export.js", // Data export plug-in  
			//"jqxknockout.js", // Knockout Integration plug-in
			//"jqxresponse.js", // Response plug-in  
		};
		//"jqxtouch.js plug-in: which simlifies handling of touch events
		String result = "";
		for (int i = 0; i < jsFiles.length; i++) {
			String jsFile = "" + jsFiles[i];
			String s = "<script type=\"text/javascript\" src=\""+jqxPath+"/"+jsFile+"\"></script>";
			result += s + "\n";
		}
		//System.out.println(result);
		return result;
	}
}
